/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-08-08 16:02:39
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';
//  车辆库存分页查询
export const getVsStock = params => axios.get(`${SERVER.CYXDMS_VEHICLE}/vsStock/qryVsStockPage`, { params });
//  车辆统计
export const getVehicleNum = params => axios.get(`${SERVER.CYXDMS_VEHICLE}/vsStock/getVehicleNum`, { params });
// 根据id查询车辆库存明细
export const getVsStockDetailById = (id, params) => axios.get(`${SERVER.CYXDMS_VEHICLE}/vsStock/getVsStockDetailById/${id}`, { params });
// TODO:车辆验收信息查询导出--PC
export const qryVsStockPage = params => {
  return axios({
      url:`${SERVER.CYXDMS_VEHICLE}/vsStock/qryVsStockPage/export/excel`,
      method:'get',
      params:params,
      responseType: 'blob'
  });
};
